import request from '@/http/request.js'

export function AvatarUpload(data){
    return request({
        url: '/api/file/avatar',
        method:'post',
        headers: {
			'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarynl6gT1BKdPWIejNq'
		},
        data:data,
    })
}

export function AlbumUpload(data){
    return request({
        url: '/file/photoAlbum',
        method:'post',
        headers: {
			'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarynl6gT1BKdPWIejNq'
		},
        data:data
    })
}

export function richText(data){
    return request({
        url: '/api/file/richText',
        method:'post',
        headers: {
			'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarynl6gT1BKdPWIejNq'
		},
        data:data,
    })
}

export function deleteFile(data){
    return request({
        url:'/file/deleteFile?fileId='+data,
        method:'get'
    })
}